tracker issue : CF-3861391

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

CFClient support for arraysort() as member funtion

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Priyatharsini K)

Created: 12/03/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 3.0 Final / CF11 Update5

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 1

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem: Currently its calling javascript function, it should give preferences to CFML sorting.
Method:

<cfclient>
<cfscript>
  myArray = listToArray("c,,a,,b")
  
  myArray.sort("textnocase", "desc");
  writeOutput('<br>' & arrayToList(myArray));//outside cfclient, displays c,b,a (inside cfclient, displays nothing)
</cfscript>
</cfclient>

Actual Result:
Getting the following output in chrome: abc
But getting blank output in Mozilla

Expected Result:
Should get the following output in both the browser: cba


Workaround:

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

Watson Bug ID:	3861391

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

+1 - Thanks, Priyatharsini, for filing this!
Vote by External U.
9751 | December 03, 2014 05:36:12 AM GMT
Issue is fixed. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
9748 | January 19, 2015 04:01:54 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
9749 | February 20, 2015 09:27:14 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). myArray.sort("textnocase", "desc") is rewritten as myArray._cfsort("textnocase","desc") Thanks!, -Aaron
Comment by External U.
9750 | November 23, 2015 05:49:05 AM GMT