From 963b3591a4c47530013971e0893030bc196fadef Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 7 Jul 2015 14:47:06 -0800 Subject: [PATCH] characteristics sort order --- app/pods/characteristics/controller.js | 2 +- app/pods/characteristics/template.hbs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/pods/characteristics/controller.js b/app/pods/characteristics/controller.js index ae686a9..88d2200 100644 --- a/app/pods/characteristics/controller.js +++ b/app/pods/characteristics/controller.js @@ -1,6 +1,6 @@ import Ember from 'ember'; export default Ember.Controller.extend({ - sortParams: ['characteristicType.characteristicTypeName', 'characteristicName'], + sortParams: ['characteristicType.characteristicTypeName', 'sortOrder'], sortedCharacteristics: Ember.computed.sort('characteristics', 'sortParams'), }); diff --git a/app/pods/characteristics/template.hbs b/app/pods/characteristics/template.hbs index 63f40a4..cc21bab 100644 --- a/app/pods/characteristics/template.hbs +++ b/app/pods/characteristics/template.hbs @@ -6,6 +6,7 @@ Name Type + Sort Order @@ -13,6 +14,7 @@ {{row.characteristicName}} {{row.characteristicType.characteristicTypeName}} + {{row.sortOrder}} {{/each}}