Sort the filename list when running editor

Without this, the editor may open the filenames in an arbitrary order.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>