- Issue created by @SirClickALot
- πΊπΈUnited States generalredneck Texas, USA πΊπΈ
I'm really not sure how to achieve this.
- πΊπΈUnited States generalredneck Texas, USA πΊπΈ
Actually, I guess it depends...
Like if you can compute the value ahead of time, you can add custom items to the Sort Index. Check out the views_natural_sort.api.php file... I think you might find something in there.
But if you are looking for something on the fly... like based off a views configuration... that's going to be quite a bit more difficult as the module relies on a prebuilt index to do the computations...
Example.. removing all the "a, an, the"s from words... or the special stuff we do with numbers to make sure they sort 1, 2, 10... instead of 1, 10, 2. These are all strings stored in the database and linked to the field that they are doing magic on. See the views_natural_sort table in the database.
But say you wanted to rewrite and sort based off of an argument passed in... that couldn't be easily done without knowing what all the possible arguments could be ahead of time.
- πΊπΈUnited States generalredneck Texas, USA πΊπΈ
one last thing... have you tried this? Computed Field β . It might give you what you want.