Merge pull request #10863 from atom/as-faster-selections-sort

Compare markers instead of ranges in Selection
This commit is contained in:
Max Brunsfeld
2016-02-17 16:51:49 -08:00

View File

@@ -755,7 +755,7 @@ class Selection extends Model
#
# * `otherSelection` A {Selection} to compare against
compare: (otherSelection) ->
@getBufferRange().compare(otherSelection.getBufferRange())
@marker.compare(otherSelection.marker)
###
Section: Private Utilities