Skip to main content

Questions tagged [sort]

The tag has no usage guidance.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
204 views

Why the Sorting Logic in Salesforce SOQL and UI is VERY different from other Systems?

The ordering mechanisms in Salesforce are really odd. Take any SObject having any Text field (e.g. Name on Account) and create some Records. Do that on an Org with no other Records of the type (e.g. a ...
Uwe Heim's user avatar
  • 28.5k
3 votes
0 answers
101 views

Does List<SObject>.sort method implementation depend on version?

I believe that I have found very interested undocumented bug in Salesforce. I don't see in the documentation saying that List.sort method implementation depends on version, but looks like it does. If ...
Patlatus's user avatar
  • 17.4k
3 votes
0 answers
225 views

Sort Products on QuoteLineItems

I am using Salesforce API 27 in .net tool to sync quote and opportunity from external system. However quote in external system and salesforce has not the same order. Salesforce is performing sorting ...
Mehul's user avatar
  • 449
1 vote
0 answers
128 views

Sorting multiple times in Aura lighting table gives me error - Uncaught (in promise) TypeError: Cannot set property 'rowIndex' of undefined

Hiall! I am not sure whats causing this issue- I have a datatable with sort. It works fine the first time but when I click on Sort arrow a couple times, I start seeing this error in console and the ...
P.Shri's user avatar
  • 69
1 vote
0 answers
54 views

'Sort By' changes dashboard in metadata

I have a dashboard with unchecked 'Use chart settings from report'. I changed the field in Sort By options and can't find these changes in Dachbord metadata. Where can I find 'Sort By' changes in ...
Pedro Van's user avatar
1 vote
1 answer
422 views

How can we sort wave report by number column?

I have created a Wave Report which I need to sort by Number field. I am not able to add Formula(Number) in Group by column even with using SAQL. I have already tried the workaround to change Formula(...
Wahib Idris's user avatar
0 votes
0 answers
17 views

Sort Element - Can it work with/as a variable from GET to UPDATE

Situation. We are tidying up some flows so they use less GET's. We have one that gets a single highest value of the last 6 months. Previously we had a filter (for its requirements) then a descending ...
Stephen John cook's user avatar
0 votes
0 answers
2k views

How do I filter data related to selected field box in my lightning data table in LWC

Hello Guys._ Guys, I have an issue with my lightning datatable Current table The problem is when I want to show the data with the current broker selected, for example, if I select "Accurate ...
Alex Barón's user avatar
0 votes
0 answers
357 views

Finding the max of value of Map<id, sObject> based on custom field

I am trying to find the biggest record in the Map for each iteration. The sorting should be based on the custom field X. After finding the biggest record, I should increment one of its fields (Y field)...
Argen Turatbek's user avatar
0 votes
1 answer
3k views

LWC datatable sorting

I'm trying to create a utility class to do all the sorting for lightning datatable. I used the functions that I have on lightning component and change to LWC, like this: updateSorting(event, fieldName,...
Alexia Ribeiro's user avatar
0 votes
1 answer
660 views

Salesforce - Lightning Database with lazyload and Sorting

How can we use lightning data table lazy load functionality with sorting of columns? As Lazy load only will bring certain no of records at a time then sorting actually is working on those set of ...
ab02's user avatar
  • 1
0 votes
0 answers
409 views

No results in a Salesforce standard list view when searching and sorting by date

We have a standard Salesforce list view for Cases. It has 7 exact match filters on it as well as filter logic. When we search the case list for a customer name, we get results. When we sort the list ...
Andy Ray's user avatar
  • 1,488
0 votes
0 answers
101 views

Sort checked row

I have a tab where i save my values in first column. And when I check checkbox I want to copy value from first column then sort it and save in second column. How to implement sort? Any suggestions ...
Greg Jason's user avatar
0 votes
0 answers
109 views

Order by if data is same for a field

In visualforce page which use apex:repeat, and also for client side sorting uses datatable.js. A field column with date type is shown. Also the page allows inline editing, on successful edit it will ...
Vetriselvan Manoharan's user avatar
0 votes
1 answer
314 views

apex:repeat group by/filter by field, show only unique values

So I have an SOQL query which returns an object with these fields: |Product Name|Option|Category| Category could be: A B Options could be: 1 2 3 In my VisualForce page I would like to visualise that ...
mirantii's user avatar
0 votes
0 answers
345 views

Sort Related List according Boolean formula field

In my account page I present all the account products. Each product object has custom boolean filed - formula type. This formula calculate if the product license is valid or not. In the GUI - there ...
aralele's user avatar
  • 65
0 votes
1 answer
538 views

Sort Order In OpportunityLineItem Preview

We have Sort button in OpportunityLineItem. Using this, customer may able to sort the products in the order they want, but in Preview (Visualforce page preview) it's dispaying default order (...
Sankar Ganesh's user avatar
0 votes
0 answers
314 views

Products to opportunities, and the SortOrder field

While adding products to an opportunity in Salesforce, you can not specify the values for the 'SortOrder' field on Opportunity Line Items. That is very weird, and is a feature requested more than 7 ...
Renato Oliveira's user avatar
0 votes
1 answer
122 views

SOQL not working

I have a dynamic SOQL query where in I am using order by clause.I want to sort it by product Style SOQL soql = 'select id, name,Warehouse__c,Product_Reference__r.gii__ProductStyle__r.name, ...
Samir's user avatar
  • 2,679
0 votes
0 answers
205 views

Sorting pageBlockTable

I'm verry sorry, but got some really terrible spaghetti code here. Ids are passed to VF page with an extension which apparently has no function? Anyhow, I've implemented sort which does work if I ...
dzh's user avatar
  • 4,165
-2 votes
1 answer
250 views

Sort Records and Assign Sorting Number - Joint Salutation

I have the following use case: We would like to create a joint letter salutation for the contacts which are related to an account. For example Dear Mr. Smith, Dear Mrs Smith. Because we want to create ...
Jan's user avatar
  • 1
-2 votes
1 answer
2k views

How to Sort Date in LWC Data table in DD.MM.YYYY Format?

I used below snippet to display Date in DD.MM.YYYY format in lwc datatable { label: DateofClosure , fieldName: 'ClosedDate', sortable: 'true', hideDefaultActions: 'true', ...
SFDCLearner's user avatar