ragtag_utilities/ContigAlignment.py
def sort_by_ref(self):
        """ Sort the alignments by reference header/position. """
        ref_pos = []
        for i in range(len(self._ref_headers)):
            ref_pos.append((self._ref_headers[i], self._ref_starts[i], self._ref_ends[i], i))
        hits = [i[3] for i in sorted(ref_pos)]

        self._rearrange_alns(hits)
 Sort the alignments by reference header/position. 
Sort the alignments by reference header/position.
Sort the alignments by reference header / position .
def sort_by_ref(self):
        ref_pos = []
        for i in range(len(self._ref_headers)):
            ref_pos.append((self._ref_headers[i], self._ref_starts[i], self._ref_ends[i], i))
        hits = [i[3] for i in sorted(ref_pos)]
        self._rearrange_alns(hits)
def sort_by_ref ( self ) : ref_pos = [ ] for i in range ( len ( self . _ref_headers ) ) : ref_pos . append ( ( self . _ref_headers [ i ] , self . _ref_starts [ i ] , self . _ref_ends [ i ] , i ) ) hits = [ i [ 3 ] for i in sorted ( ref_pos ) ] self . _rearrange_alns ( hits )
Sort the alignments by reference header/position.
Sort the alignments by reference header / position .
""" Sort the alignments by reference header/position. """
self