# Custom sorting?

**URL:** <https://community.weweb.io/t/custom-sorting/7975>\
**Category:** How do I?\
**Created:** [April 6, 2024, 12:11pm UTC](https://community.weweb.io/t/custom-sorting/7975 "2024-04-06T12:11:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unlustucru](https://avatars.discourse-cdn.com/v4/letter/u/e36b37/32.png) [@unlustucru](https://community.weweb.io/u/unlustucru)\
**Post date:** [April 6, 2024, 12:11pm UTC](https://community.weweb.io/t/custom-sorting/7975/1 "2024-04-06T12:11:30Z")

</div>

My DB table has a “type” column that can receive 3 predefined values: company, team, employee.  
I’d like to set up a sorting so that the records appear in that order.  
If I use the basic sorting options are ascending and descending, the order would either be 1. company, 2. employe, 3. team, or vice-versa.  
How do I set up a custom sorting order?
