Connecting Tech Pros Worldwide Help | Site Map

sorting arbitrarily

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:23 PM
Steve Leferve
Guest
 
Posts: n/a
Default sorting arbitrarily

Hey folks -

I'm working on a database that has a questionaire. The questions belong to
groups, categories, then sub-categories.

These questions must follow a sorting order that doesn't have any built-in
definition (i.e. alphabetically).

What's the best way to do this kind of thing? It has to be user-editable.

I was thinking of making a 1-character text column that only allows
alphanumeric characters. This column would be invisible to users, but I
would make a form showing each question as a row, with 'promote' and
'demote' buttons. Then I have to do some fancy footwork in order to change
the values of the sort-order field, esp. if number 6 is supposed to be
promoted up so that it's between number 2 and 3.

Steve Lefevre



  #2  
Old November 12th, 2005, 09:23 PM
Knud Rogilds
Guest
 
Posts: n/a
Default Re: sorting arbitrarily

You provide the solution yourself. In this kind of situations I use a
numeric field (for flexibility) to sort by. That way I (or my users) have
full control over the sort order.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.