Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Sort json response in slightly

Avatar

Avatar
Validate 10
Level 3
sathya_prakasha
Level 3

Likes

22 likes

Total Posts

100 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
sathya_prakasha
Level 3

Likes

22 likes

Total Posts

100 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
sathya_prakasha
Level 3

15-12-2017

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..

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

277 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

277 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

15-12-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

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
Veena_Vikraman
Level 2

Likes

5 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Veena_Vikraman
Level 2

Likes

5 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
Veena_Vikraman
Level 2

15-12-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 

Avatar

Avatar
Give Back
Level 1
simoneb20672152
Level 1

Likes

2 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Give Back
Boost 1
Affirm 1
View profile

Avatar
Give Back
Level 1
simoneb20672152
Level 1

Likes

2 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Give Back
Boost 1
Affirm 1
View profile
simoneb20672152
Level 1

15-12-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)