TABLE OF CONTENTS


::pwtk::pwo::sortFiles

SYNOPSIS

proc ::pwtk::pwo::sortFiles {args} {    

USAGE

    ::pwtk::pwo::sortFiles [-by energy|force|totmag|press|dipole|COMMAND] [-increasing|-decreasing]  filePattern  ?filePattern ...?

PURPOSE

Return a sorted list of pw.x output files according to the specified criterion.

OPTIONS

The user COMMAND command specified by the -by option must be of the form analogous to ::pwtk::pwo::totene

ARGUMENTS

SOURCE

    set result {}
    foreach pwo_value [eval ::pwtk::pwo::listing $args] {
        lappend result [lindex $pwo_value 0]
    }
    return $result
}