diff --git a/app/eve_api/templates/eve_api/character.html b/app/eve_api/templates/eve_api/character.html
index 2a8cfdb..57225ea 100644
--- a/app/eve_api/templates/eve_api/character.html
+++ b/app/eve_api/templates/eve_api/character.html
@@ -80,13 +80,13 @@
- {% if character.employmenthistory.count %}
+ {% if employmenthistory.count %}
Employment History
| Corporation | Join Date | Leave Date |
- {% for hist in character.employmenthistory.all %}
+ {% for hist in employmenthistory %}
| {{ hist.corporation.name }} | {{ hist.start_date }} | {% if hist.end_date %}{{ hist.end_date }}{% endif %} |
{% endfor %}
diff --git a/app/eve_api/views.py b/app/eve_api/views.py
index 9626bac..e04533d 100644
--- a/app/eve_api/views.py
+++ b/app/eve_api/views.py
@@ -173,6 +173,8 @@ def eveapi_character(request, charid=None, template='eve_api/character.html', li
skillTree[-1][0] += skill.skillpoints
skillTree[-1][2].append(skill)
+ employmenthistory = character.employmenthistory.all().order_by('-record_id')
+
context = {
'character': character,
'current_training': current_training,