Make sort order manager more general

- Remove hard-coded values