add maybeSortBy