Added user list sorting thanks to Magisun
Better production mode support