Sort candidates at end of loop (#748).

* helm-eshell.el: Use classes for completion and history.