AttocubeScan.sort¶
- AttocubeScan.sort(key=None, reverse=False, recurse=True)¶
Sort the files by some key.
- Keyword Arguments:
key (string, callable or None) – Either a string or a callable function. If a string then this is interpreted as a metadata key, if callable then it is assumed that this is a a function of one parameter x that is a
Stoner.Core.metadataObject
object and that returns a key value. If key is not specified (default), then a sort is performed on the filenamereverse (bool) – Optionally sort in reverse order
recurse (bool) – If True (default) sort the sub-groups as well.
- Returns:
A copy of the current objectFolder object