tracker issue : CF-4148803

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

[ANeff] Bug for: QuerySort() exception says ArraySort()

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/04/2016

Components: Language

Versions: 2016

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 2016.0.02.299200 Issues Fixed doc
QuerySort() exception says ArraySort()

Repro:

<cfscript>
  q = queryNew("myCol", "", [["b"],["a"],["c"]]);
  comparator = function(value1, value2) {
	  return "foobar";
  };
  writeDump(q.sort(comparator));
</cfscript>

Actual result: "Function return type for ArraySort is not valid."

Expected result: "Function return type for QuerySort is not valid."

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

Watson Bug ID:	4148803

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

This issue is fixed now and the fix will be available as part of an upcoming update of ColdFusion 2016.
Comment by Nimit S.
2941 | May 17, 2016 04:41:05 AM GMT
test note
Comment by CFwatson U.
2942 | June 07, 2016 04:17:13 AM GMT
The fix for this bug is available as part of the early-access build for ColdFusion 2016 Update 2.
Comment by CFwatson U.
2943 | June 07, 2016 04:23:54 AM GMT