code: def _nice_fieldnames(all_columns, index_columns):
      "Indexes on the left, other fields in alphabetical order on the right."
      non_index_columns = set(all_columns).difference(index_columns)
      return index_columns + sorted(non_index_columnsf _nice_fieldnames(all_columns, index_columns):
      "Indexes on the left, other fields in alphabetical order on the right."
      non_index_columns = set(all_columns).difference(index_columns)
      return index_columns + sorted(non_index_columns)
docs: Indexes on the left, other fields in alphabetical order on the right.