status sorting fixed