Quote from: BobRay at Sep 20, 2008, 04:57 AM
It looks like you’d have to hack Wayfinder to get the template for each document, then the respective TV names from another table, then the TV contents from yet another table. It could be done but not easily.
Or efficiently I might add. TV values being joined into the query wouldn’t be that difficult or add that much time, but since they may have to be processed to get the actual value to sort on, this could potentially be the most inefficient part of your entire site. And being that the navigation is persistent across pages, unless you cache all of your Wayfinder instances on cacheable pages, that could be a serious bottleneck for your site’s performance.
If you know what TV you want to sort on, it wouldn’t be too difficult to just create your own script to do this. Heck you could even just make a copy of the Wayfinder snippet and simply name it something like WayfinderCustomTVSort and optimize the query to do exactly what you want.