title: Sorting a List of Elements by the First element but if Equal sort by the second
body: <p>I have constructed a list <code>[[13, "b"], [10, "b"], [10, "a",], [4,"c"], [1, "d"]]</code> which is sorted by the first value in the list of two elements.  That is the part I can do.  What I don't know is if two elements are the same, then I want to sort it alphabetically.  The method I used to sort the first list was reversing a sorted list by the first element.  This however makes <code>[10, "b"]</code> come before <code>[10, "a"]</code> but i want "a" before "b".  Is there a way to write sort by first element in descending order and if a tie, sort alphabetically by the second element?    </p>