sort in service side, dont know the best way