rework user attribute sorting - closes #596
Merge branch 'master' of github.com:concrete5/concrete5-5.7.0