Causes incorrect alphabetical sorting

This should fix https://github.com/chjj/blessed/issues/82

It was causing issues reported here: https://github.com/slap-editor/slap/issues/68

I tested the sorting function using a set of named files similar to the Slap issue referenced above and by testing `test/widget-file.js`