You are on page 1of 2

reorder

iNEWS has console utility to reorder the sequence of queues and directories on the directory
tree. This tool is useful for customers who've added a new rundown and wish to reorder the
sequence of the directory display.
The console utility program called "reorder".
It allows you to change the sequence number of a directory record within a sequential directory.

Its usage message is:

usage: reorder <parent> <child> <position>

<position> can be:


-a <sibling> (place <child> after <sibling>)
-b <sibling> (place <child> before <sibling>)
-<number> (move <child> up <number> positions)
+<number> (move <child> down <number> positions)
<number> (place <child> at <number> position)

The <child> and <sibling> names are just the lowest level names. So if you have a sequential
directory:

WEEK.SUNDAY
WEEK.MONDAY
WEEK.TUESDAY
WEEK.WEDNESDAY
WEEK.THURSDAY
WEEK.FRIDAY
WEEK.SATURDAY

You could move SUNDAY to the end with any of the following:

reorder week sunday -a saturday


reorder week sunday 7
reorder week sunday +6

Similarly you could move SATURDAY to the beginning with any of the following:

reorder week saturday -b sunday


reorder week saturday 1
reorder week saturday -6

Here's another example:

Underneath SHOW I have a NIGHTCAST folder. If I wanted it to be first in the list I would do:

reorder show nightcast 1

If I wanted to move it UP 3 spots I could do:

reorder show nightcast +3

If I wanted the NIGHTCAST folder to come *after* the 11PM folder, I'd do:
reorder show nightcast -a 11pm

This utility is safe to run on a live system. Users could always logout and back in again if the
show folder looked abnormal in any way.

You might also like