code: def _sort_list_dir_result(paths):
      """Returns sorted list of paths for a directory listing.
  
      Entries are ordered alphabetically with directories always occurring
      after non-directories.
      """
      return sorted(paths, key=_list_dir_sort_key)
  
imports: import os
label_desc: Use image node_id 10 for calling a global function with example usage: _sort_list_dir_result(paths) and returns: sorted