djdb/models.py
def sorted_tracks_all(self):
        """Returns Album tracks sorted by track number."""
        tracks = []
        entities = sorted(self.track_set, key=lambda x: x.sort_key)
        for entity in entities:
            tracks.append(entity)

        return tracks
Returns Album tracks sorted by track number.
Returns Album tracks sorted by track number.
Returns Album tracks sorted by track number .
def sorted_tracks_all(self):
        tracks = []
        entities = sorted(self.track_set, key=lambda x: x.sort_key)
        for entity in entities:
            tracks.append(entity)
        return tracks
def sorted_tracks_all ( self ) : tracks = [ ] entities = sorted ( self . track_set , key = lambda x : x . sort_key ) for entity in entities : tracks . append ( entity ) return tracks
Returns Album tracks sorted by track number.
Returns Album tracks sorted by track number .
"""Returns Album tracks sorted by track number."""
self