override fun compareTo()

in src/main/kotlin/com/uber/nanoscope/Main.kt [296:315]


        override fun compareTo(other: Event): Int {
            val r = timestamp.compareTo(other.timestamp)
            if (r != 0) {
                return r
            }

            return if (start) {
                if (other.start) {
                    -duration.compareTo(other.duration)
                } else {
                    1
                }
            } else {
                if (other.start) {
                    -1
                } else {
                     duration.compareTo(other.duration)
                }
            }
        }