Archive of UserLand's first discussion group, started October 5, 1998.

Sorting table items?

Author:Oliver Wrede
Posted:3/10/1999; 9:37:39 AM
Topic:Sorting table items?
Msg #:3890
Prev/Next:3889 / 3891

Hello.

I created a script, which traverses the table structure of a website to create a navigation bar. It uses the #title definition in an index wptext in each subtable for the text of each link.

I can't figure out, how to arrange the items.

Let's say my table looks like this (a "/" refers to a subtable):

  > #glossary/
  > #prefs/
  > #images/
  > index
  > news/
  > projects/
  > students/
My Script would do a Navbar like this (according to the order of the objects in my table):
   | News | Projects | Students |
The table items will be sorted alphbetically. Re-arrangements them will not be saved. So I can't get this Navbar:
   | News | Students | Projects |
I saw a possibility to begin a objectname with a 4 digit number followed by a TAB. Trying this, I create illegal filenames like "0001\tnews.html".

Any one can come up with a solution?

Oliver


There are responses to this message:


This page was archived on 6/13/2001; 4:48:37 PM.

© Copyright 1998-2001 UserLand Software, Inc.