Issue:
[FEATURE] Sorting POC

Allow sorting on amount and date in tables under Operations

If user clicks on the arrow to sort information being on a page which is not the first one, we will sort the data via backend and redirect them to first page

Performance POC to be done for the same

Resolution:
<think>
PR Context:
- Title: feat(payments): support sort criteria in payments list
- Merged: 2024-07-26T14:18:48Z
- Files changed: 3 files
- Commits: 7 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
Support sort criterial for payments list:
- sort on basis of amount (ascending or descending)
- sort on basis of created at time (ascending or descending)

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR 
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(payments): support sort criteria in payments list (#5389)
Co-authored-by: hyperswitch-bot[bot] 
Files to modify:


**crates/api_models/src/payments.rs**
  Add:
    - struct: pub::Order
    - enum: pub::SortOn
    - enum: pub::SortBy

**crates/hyperswitch_domain_models/src/payments/payment_intent.rs**
  Modify existing code

**crates/storage_impl/src/payments/payment_intent.rs**
  Modify existing code