Bug 1557501 Comment 10 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> How to best replace the qsort here?

Sort() on the nsTArray.  Looks like CompareMsgTagKeys is a bog-standard lexicographic comparator, so you don't even need a custom comparator object, since strings define `==` and `<` operators.  Just do:
```
   prefList.Sort();
```
and you're done.
> How to best replace the qsort here?

`Sort()` on the `nsTArray`.  Looks like `CompareMsgTagKeys` is a bog-standard lexicographic comparator, so you don't even need a custom comparator object, since strings define `==` and `<` operators.  Just do:
```
   prefList.Sort();
```
and you're done.

Back to Bug 1557501 Comment 10