make list sorting configurable