From ace51daec9cb7065b67bea336ef09debc0a034e4 Mon Sep 17 00:00:00 2001
From: Dan Wells <dbw2@calvin.edu>
Date: Tue, 12 Jun 2012 09:03:31 -0400
Subject: [PATCH] Serial Note Sort Fix

Serial notes are currently sorting backwards from what is intended
(and what is expected based on other interfaces).  This was caused
by adding a sort to the middle-layer code which resulted in an
unwanted double reverse.

[whitespace adjustment by LFW per request of DBS]

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
---
 Open-ILS/xul/staff_client/server/serial/notes.xul | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/xul/staff_client/server/serial/notes.xul b/Open-ILS/xul/staff_client/server/serial/notes.xul
index 386680258b..207b448aa9 100644
--- a/Open-ILS/xul/staff_client/server/serial/notes.xul
+++ b/Open-ILS/xul/staff_client/server/serial/notes.xul
@@ -77,7 +77,11 @@
 		}
 
 		function retrieve_notes() {
-			g.notes = g.network.simple_request('FM_'+g.function_type+'_RETRIEVE_ALL',[ { 'authtoken' : ses(), 'object_id' : g.object_id } ]).reverse();
+			g.notes = g.network.simple_request(
+				'FM_' + g.function_type + '_RETRIEVE_ALL', [
+					{ 'authtoken' : ses(), 'object_id' : g.object_id }
+				]
+			);
 		}
 
 		function apply(node,field,value) {
-- 
2.11.0