fixed segments sorting by jqueryui.need()