Add sorting & paging to segment matching REST API