Making sorting configurable and consistent.