Array.prototype.sort

GPTKB entity

Statements (26)
Predicate Object
gptkbp:instance_of gptkb:Mathematics
gptkbp:accepts compare Function
gptkbp:community gptkb:Matrix
original array
gptkbp:data_return gptkb:Matrix
gptkbp:financial_stability false
https://www.w3.org/2000/01/rdf-schema#label Array.prototype.sort
gptkbp:is_available_in gptkb:ECMAScript
gptkb:Java_Script
gptkbp:is_in_place gptkb:true
gptkbp:is_not_stable gptkb:true
gptkbp:is_part_of Array prototype
gptkbp:is_supported_by Older browsers
gptkbp:is_used_for Sorting elements in an array
gptkbp:order gptkb:Numbers
Objects
Strings
Dates
Custom objects
Mixed types
Unicode code point order
gptkbp:requires callback function for custom sorting
gptkbp:time_complexity O(n log n) average
O(n^2) worst
gptkbp:bfsParent gptkb:ECMAScript
gptkbp:bfsLayer 5