reimplementated angular's orderBy filter for legacy mode / sort on server site