Fix front-end names sql

Order by statement