lindelwa122 / data-watch-orm

A Python ORM
MIT License
11 stars 6 forks source link

helpers/order_by #10

Open lindelwa122 opened 1 month ago

lindelwa122 commented 1 month ago

This function should order the dataset based on the provided key. The key should be an attribute that exists within the data class; if it does not, an appropriate error should be raised. By default, the dataset should be ordered in ascending order; however, if the key is prefixed with a '-', the dataset should be ordered in descending order.