sort folders first, then files

Sort folders first in the files view, then folders. Fixes https://github.com/dart-lang/spark/issues/1533.

@dinhviethoa