class RubyProf::MethodInfo
def <=>(other)
def <=>(other) sort_delta = 0.0001 if other.nil? -1 elsif self.full_name == other.full_name 0 elsif self.total_time < other.total_time && (self.total_time - other.total_time).abs > sort_delta -1 elsif self.total_time > other.total_time && (self.total_time - other.total_time).abs > sort_delta 1 elsif self.call_trees.min_depth < other.call_trees.min_depth 1 elsif self.call_trees.min_depth > other.call_trees.min_depth -1 else self.full_name <=> other.full_name end end