Fix for issue with descending sort.