Fixed descending sort bug