Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [sort]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
228 views

SOQL with ORDER BY and NULLS LAST ASC return wrong order results when we order by field from relationship

I noticed that SOQL with ORDER BY and NULLS LAST ASC returns results in wrong order (especially when I order by field from relationship). I wonder if it is some kind of bug or I've done some mistake ...
3
votes
0answers
77 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 ...
2
votes
1answer
394 views

Strange, slow behavior during ordering w/ REST API

I'm seeing some very bizarre SOQL performance when ordering by Id across several Sobjects. In this, they seem to take a very long time to select even just Ids when asked to sort by Id. Remove the ...
2
votes
0answers
79 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 ...
1
vote
0answers
32 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 ...
1
vote
1answer
190 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(...
0
votes
0answers
56 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 ...
0
votes
0answers
149 views

How to Sort Opportunity Product Records in Lightning

In Classic, the Sort button is quite useful on the opportunity product so end user can easily adjust the order to present on the frontend or in generated document. But in Lightning the button is not ...
0
votes
0answers
23 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 ...
0
votes
1answer
91 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 ...
0
votes
0answers
119 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 ...
0
votes
1answer
204 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 (...
0
votes
0answers
48 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 ...
0
votes
1answer
93 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, ...
0
votes
0answers
183 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 ...