Status/Resolution/Reason: To Test//DesignLimitation
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()
Created: 03/19/2018
Components: Language, Closures
Versions: 2016,11.0,2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2016,0,04,302561 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: / Platforms All
Vote Count: 0
Issue: ListSort() w/ callback disallows IncludeEmptyFields
Steps to Reproduce:
{code:java}
<cfscript>
list1 = "b|a||c";
list2 = list1.listSort(function(element1, element2) {
return element1.compare(element2);
}, "|", true);
writeOutput(list2);
</cfscript>
{code}
Actual Result: coldfusion.runtime.InvalidSortTypeException
Expected Result: "|a|b|c"
Bug b/c ListSort()'s callback has no equivalent functionality for this:
{code:java}
<cfscript>
list1 = "b|a||c";
writeOutput(list1.listSort("text", "asc", "|", true));//returns "|a|b|c"
</cfscript>
{code}
Attachments:
Comments: