Array.shift in Firefox's JS Engine has been optimized to improve performance by moving the pointer of the array instead of moving items individually. This results in a constant time complexity for shifting elements in the array.
Sort: