Developer forum

Forum » Feature requests » Sorting loops
Rasmus Pedersen
Reply

Could we get a sorted loop?

So we can use

GetLoop("RandomItems", "FieldToSortBy")

 

Would be quite handy.


Replies

 
Nicolai Høeg Pedersen
Reply

Yes.

See sorting section here: https://github.com/dynamicweb/razor/wiki/Recipes

All power to Razor!

 
Nuno Aguiar
Reply

Hi Nicolai and Rasmus,

 

I can confirm that, but (unless someone found a way around it) only works if there is are no paged values.

 

Best Regards,

Nuno