one more step in ordering to prevent 404 error because of an invali ordering param, use python list comprehension