Fix for reversed asc/desc