removed sorting logic from server to Angular filter