Sort folders/files in UI tree