classes/phing/system/io/PhingFile.php
public function compareTo(PhingFile $file)
    {
        $fs = FileSystem::getFileSystem();

        return $fs->compare($this, $file);
    }
public function compareTo(PhingFile $file)
    {
        $fs = FileSystem::getFileSystem();

        return $fs->compare($this, $file);
    }
public function compareTo ( PhingFile $ file ) { $ fs = FileSystem :: getFileSystem ( ) ; return $ fs -> compare ( $ this , $ file ) ; }
Compares two abstract pathnames lexicographically.  The ordering
defined by this method depends upon the underlying system.  On UNIX
systems, alphabetic case is significant in comparing pathnames; on Win32
systems it is not.

@param PhingFile $file Th file whose pathname sould be compared to the pathname of this file.

@return int Zero if the argument is equal to this abstract pathname, a
value less than zero if this abstract pathname is
lexicographically less than the argument, or a value greater
than zero if this abstract pathname is lexicographically
greater than the argument
Compares two abstract pathnames lexicographically . The ordering defined by this method depends upon the underlying system . On UNIX systems alphabetic case is significant in comparing pathnames ; on Win32 systems it is not .