Ad
  • Custom User Avatar

    Why is this a best practice? Sorting complexity for sorting is about and is O(n * log(n)) and just iterating through the array will take O(n) that faster and simplier, e.g. for 1 billion array list the number of iteration for sorting will be about 30 billions.