Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

How to reorder a custom collection using script.

$
0
0

Let say I have a collection "ABC_T" in a Project which has two column Line No & Data.

 

Table: ABC_T

 

Line NoData
1Data 1
2

Data 2

3Data 3
4Data 4

 

I want to sort the table based on the 1st column line no in descending order. So the document should look like below when a user click on save.

 

Line NoData
4Data 4
3

Data 3

2Data 2
1Data 1

Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>