fix sorting once again