Got sort order working