fixed sort by status