sort result string