empList = [
{ "Account": "AAA - 0029", "Available": "$100" },
{ "Account": "BBB- 0146", "Available": "200" },
{ "Account": "AAA - 1812", "Available": "300"},
{ "Account": "CCC- 2019", "Available": "400"},
{ "Account": "FYC- 3810", "Available": "500"},
{ "Account": "HHH- 5210", "Available": "600"},
]
My list of accounts needs to be sorted based on the numbers in the Account property, either ascending or descending. I've attempted various methods without success. The "-" is used as a delimiter to split "AAA - 0029".