Shail S

Shail S

  • NA
  • 455
  • 76.2k

How to orderby LikesCount when using Rest API to fetch items

Feb 27 2019 12:36 AM
I need to retrieve all the posts from the "Posts" list in a Sharepoint Blog site and sort the results depending on the "NumberofLikes". How can i achieve this?
 
&$orderby=LikesCount desc
 
does not work with Rest API url. How can i sort the items based on the number of likes. How can i achieve it?

Answers (1)