[android-components](../../../index.md) / [org.mozilla.telemetry.util](../../index.md) / [FileUtils](../index.md) / [FileLastModifiedComparator](index.md) / [compare](./compare.md)

# compare

`open fun compare(lhs: `[`File`](https://developer.android.com/reference/java/io/File.html)`, rhs: `[`File`](https://developer.android.com/reference/java/io/File.html)`): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/FileUtils.java#L54)