mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Merge pull request #10863 from atom/as-faster-selections-sort
Compare markers instead of ranges in Selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user