24
Views
8
Comments
Solved
How to sort by importance
Question
Application Type
Reactive

hi. I am a novice developer at outsystems.

I want to list the announcements in order of importance, but I want the important notices to be sorted at the top. Please let me know if there is a way. 



If there is a way, I would appreciate it if you could tell me in detail with an image.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

It is unclear how the value for Notice.Level is set. If 1 means it is important, and 0 means not important, than you can sort Descending on Notice.Level, this would put all records selected in a an order that has the once with level=1 displayed first, and after that the records with level=0

Regards,

Daniel

UserImage.jpg
Woo sihyun

That's right, level=1 is important and 0 is not important.

UserImage.jpg
Woo sihyun

Can you elaborate on how?

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi @Woo sihyun


Set the sorting as I did in above image
In your case sorting attribute will be Notice.Level  and It should be Descending.
As @Daniel Kuhlmann suggested.

Regards
Krishnanand Pathak

UserImage.jpg
Woo sihyun
2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi @Woo sihyun


Set the sorting as I did in above image
In your case sorting attribute will be Notice.Level  and It should be Descending.
As @Daniel Kuhlmann suggested.

Regards
Krishnanand Pathak

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

It is unclear how the value for Notice.Level is set. If 1 means it is important, and 0 means not important, than you can sort Descending on Notice.Level, this would put all records selected in a an order that has the once with level=1 displayed first, and after that the records with level=0

Regards,

Daniel

UserImage.jpg
Woo sihyun

That's right, level=1 is important and 0 is not important.

UserImage.jpg
Woo sihyun

Can you elaborate on how?

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi @Woo sihyun


Set the sorting as I did in above image
In your case sorting attribute will be Notice.Level  and It should be Descending.
As @Daniel Kuhlmann suggested.

Regards
Krishnanand Pathak

UserImage.jpg
Woo sihyun
2019-02-27 17-48-20
Caldeira81

Hi, normally by title you only can do sort by [A -Z] or [Z -A] , why do you add a new field/attribute order or importante { high, medium,low} to sort them ?

UserImage.jpg
Woo sihyun

That's because I want to put the important stuff on top.

2022-07-03 17-24-08
Sourabh sharma

Hi Woo sihyun

You have provided little less information to undersatand your sorting data .. 

as I am getting you have Leve-1 means important so you can sory by this only .Read More 

Or you can use ListSort :How to sort 

kind regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.