imporve user sort method refs #508