tracker issue : CF-3715376

select a category, or use search below
(searches all categories and all time range)
Title:

Callback versions of listSort(), structSort(), querySort() to match arraySort()

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 02/28/2014

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: PublicBeta /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 25, 2019 using build 2016.0.01.298513
G'day
ColdFusion 10 added a function arraySort() which uses a callback as a sort comparator, eg:

arraySort(array, function)

However there was no equivalent functions for lists or structs. These should have been done at the same time. Also as equivalent functions for query iteration should have been implemented too, it stands to reason querySort() should be implemented too.

Obviously (?) these should be implemented as both member functions and procedural functions.

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3715376

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

This bug fix updates the callback version of listSort() & structSort(). QuerySort() we need to start afresh. Thanks, Suchika.
Comment by Suchika S.
13129 | July 14, 2015 05:31:47 AM GMT
Cool. New ticket raised to cover that lot: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-4020668 Thanks for keeping us in the loop, Suchika :-) -- Adam
Comment by External U.
13130 | July 14, 2015 05:39:05 AM GMT
Hi Adam, Callback feature is now in the following docs: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-l/listsort.html https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-s/structsort.html QuerySort- already documented: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-m-r/querysort.html Thanks, Saurav
Comment by External U.
13131 | July 27, 2016 03:37:24 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31206 | August 25, 2019 09:54:30 AM GMT