Fix sorting of internal window list.

The sort() method needs a <0/=0/>0 comparison result. The proper
method for doing this with strings is .localeCompare().
This fixes Alt-[PAGE]{UP,DOWN} ordering issues, where the selection
seems to jump around randomly.

While here, the usual syntax cleanup in window_list_test.js.
Merge pull request #200 from tvierling/window_list_sort

Fix sorting of internal window list.