Sort users list and honor sleeps at ghost table fix rake

fixes #1603