Should probably write this as:
```cpp
const int res = qsUsername.localeAwareCompare(other.qsUsername);
if (res == 0)
    return haAddress < other.haAddress;
return res < 0;
```
As we need to localeAwareCompare in most cases anyways which also does an equality check for us.