.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Array.sorted" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Array::sorted \- Return a sorted array. .SH "SYNOPSIS" .B [a] sorted( \fI[a] xs, Int(a, a) sortfn=compare\fP .B ")" .SH "ARGUMENTS" .PP .B "xs" The array to sort .PP .B "sortfn" Optionally, a user-defined comparison function. .SH "DESCRIPTION" .PP Sorts an array, but unlike .B "Array.sort"(3kaya) returns a new array and leaves the original unmodified. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP See the .B "Array.sort"(3kaya) function documentation for usage examples. .PD 0.4v