I’ll like to sort a Collection by distance to a target (lat, long). I’ve got a collection with lat long coordinates using Cartographer.
Would it be possible to create a custom filter that would calculate a distance and order the collection by that distance?
I’m new to creating addons/helpers and hoping someone may be able to point me in the right direction in terms of accessing and modifying a collection in this case. There are lots of examples explaining the Haversine formula etc, but I’m I’m not sure how to hook it up in this context.
Is a custom filter even the best approach?