[#42] fix sorting