sort

sort(configuration, indices, priority)

Method to sort the atoms in a configuration according to the fractional coordinates.

Parameters:
  • configuration (AtomicConfiguration) – The configuration to be sorted(in place).

  • indices (All | sequence of integers) – The indices.

  • priority (List with the entries 0,1,2 in some order) – The priority of the different coordinates in the sorting.

Returns:

The sorted configuration.

Return type:

AtomicConfiguration