Scan window: stabilize sort-by-channel

The current sort did not maintain an order among entries of the same frequency.
Enforce such an order via sorting by ESSID in addition.
Thanks to Nick Warne for reporting this bug.