I would like to solve a problem:
Sorting rows in the Pagekit-views is super easy:
If your model has a property, you can just do:
In your view you can just do
Alright, that works fine.
But what's about a model that has something like a "computed" property. For example you create a value in the model that is not stored in a database row. How would you do the sorting for this?
You have a row date and modified. Now you would like to create a field that contains the difference between date and modified. Let's call this value difference.
Now you want to echo out this value in a view and also make this work with v-order . Is this possible in an easy way?