Sort json response in slightly | Community
Skip to main content
AEMLearner-1989
New Participant
December 15, 2017
Solved

Sort json response in slightly

  • December 15, 2017
  • 3 replies
  • 2595 views

Hi,

I am getting list of books from third party services.

Wanna list the books in sorting order like ASC using slightly. is it possible..?? I am able to get the results but not in sorting order..

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

As of now sightly does not support list sorting.

Backend call to 3rd party -  Process this in sling model

Frontend call to 3rd party - Use JS

3 replies

edubey
edubeyAccepted solution
New Participant
December 15, 2017

As of now sightly does not support list sorting.

Backend call to 3rd party -  Process this in sling model

Frontend call to 3rd party - Use JS

New Participant
December 15, 2017

Satya,

       HTL is a template language and cannot do much of data manipulation . So as Simone said you have to handle it either in client-side or server side . Getting Started with HTL 

simoneb20672152
New Participant
December 15, 2017

If you are retrieving the json clientside you need to sort it by javascript.

If you are retrieving serverside, you need to sort your list before listing with sightly markup (with JS or Java API you are using)