fixed the sorting.  Still doesn't seem right