Skip to content

Commit

Permalink
Merge pull request #55 from rogerskw/iss51
Browse files Browse the repository at this point in the history
Issue #51: Sort Theta Tau positions and jobs by year (descending) on the
  • Loading branch information
kylerog committed Mar 9, 2014
2 parents df26943 + 5dbbff7 commit f9bd122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions info/models.py
Expand Up @@ -128,8 +128,8 @@ def __str__(self):
class BrotherEntity():
def __init__(self, brotherObj):
self.brother = brotherObj
heldPositions = HeldPosition.objects.filter(brother = self.brother.id)
retrievedJobs = Job.objects.filter(brother = self.brother.id)
heldPositions = HeldPosition.objects.filter(brother = self.brother.id).order_by('-year')
retrievedJobs = Job.objects.filter(brother = self.brother.id).order_by('-year')
self.positions = []
for heldPosition in heldPositions:
self.positions.append(heldPosition)
Expand Down

0 comments on commit f9bd122

Please sign in to comment.