Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

How to ensure sort order with delimited list in WHERE IN clause

$
0
0
We have a stored value on a web part which is a PIPE separated list of NodeGUIDs, which also indicate the custom sort order of the selected items.How would we use the stored value to retrieve the list of nodes in the correct order when using this stored value in the application i.e. via Pages APIIterating thru each piped value and retrieving the page seems excessive/inefficient and a @where IN (..., ..., ...)@ approach seems more logical - however sort order is not ensured using this option.How can you ensure the list of pages returned are in the same order as our PIPED list ?

Viewing all articles
Browse latest Browse all 8901

Trending Articles