Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 20th, 2003, 12:07 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default Sorting on mulitple colums

I have a several columns of data coming back from a query that I present to the user, I would like to be able to allow the user to sort this as they see fit.

Initially I've used an array and the SORT function, but the requiements are now to allow sorting of the following nature :

sort by col1 ascending then col2 descending

This is a lot more complex than just a simple SORT call. Some people have suggesting using XML for the data and the sorting, but I've not used it heavily, others have suggested building a DB call each time, but I'd prefer to do it client side.

I'd appreciate any thoughts or comments from the group.
All the best

Greg Griffiths
Web & Livelink Developer

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Distinct two colums but select other colums ALPEN07 SQL Server 2005 2 April 5th, 2008 06:08 AM
Mulitple roots supports with LoadXML processing harshalchoksi XML 1 March 2nd, 2007 04:13 AM
update mulitple rows in SQL 2K danastasio Classic ASP Databases 2 January 16th, 2007 12:14 PM
Mulitple fields primary key ksa266 Access VBA 1 December 15th, 2003 10:13 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.