I haven't found a good solution to this yet. I have an array of strings used in a glossary pop up. The strings are keys and are used to retrieve definitions out of an object. I need the array to be sorted alphabetically but some of the strings contain quotes and end up appearing first when sorted.
keys = ['Back Pay', '"Hot Cargo" Agreements', 'Clayton Act',
'Fiduciaries', 'Estoppel', ...]
When sorted I want the list to ignore the quotes and be the following:
['Back Pay', 'Clayton Act', 'Estoppel',
'Fiduciaries', '"Hot Cargo" Agreements', ...]
but I get the following:
['"Hot Cargo" Agreements', 'Back Pay', 'Clayton Act', 'Estoppel',
'Fiduciaries', ...]
Is there a way to ignore the quotes during sorting without stripping them off? They are part of the term and need to be there when displaying them in the glossary pop up.