You are given an array of objects where each object has two properties:
Write a function that sorts the array using the following criteria:
count
property.count
, sort them in ascending alphabetical order by the name
property.Your task is to implement a sorting algorithm (e.g., merge sort, quick sort, etc.) without using built-in sorting functions. This problem will help you practice implementing sorting algorithms along with custom comparator logic.
Hint: Think about how you can modify a standard sort to account for two sorting criteria.
Good luck and happy coding on this day of celebrating order and structure!