PebbleRows is a Web application that takes the source code for an HTML, XHTML, or DITA-XML table and sorts the rows based on a particular column (and an optional secondary sort-by column). PebbleRows can also delete a specified column from the table.
Input
Sorting
Rows
Deleting a Column
The snippet of HTML, XHTML, or DITA source code that you type or paste into the text area (the large box on the left side of the application window) must meet the following conditions:
There must be exactly one table. PebbleRows does not support nested or successive tables.
PebbleRows defines a table as either a <table> element or a <simpletable> element.
The table must contain no more than one <tbody> element. If the table contains one or more <thead> or <tfoot> elements, it must contain exactly one <tbody> element.
The markup must be a valid HTML 4.01, XHTML 1.0, or DITA 1.x snippet, and any table-related HTML tags must be closed.
For a sorting operation, there must be only whitespace between the rows to be sorted. For example, an HTML comment between two <tr> elements in the table body generates an error.
For a sorting operation, no cell within the rows to be sorted can span more than one row or column, and all the rows to be sorted must contain the same number of cells.
For a column deletion, no cell in the table can span more than one row or column, and the rows must all contain the same number of cells.
PebbleRows does not sort rows within table headers (<thead> or <sthead>) or footers (<tfoot>).
If there is no <thead> or <sthead> element, PebbleRows checks whether the first row in the table contains one or more <th> elements and no <td> elements, and if so, PebbleRows does not include the first row in a sorting operation.
PebbleRows sorts the body of a table according to the values in a specified sort-by column and an optional secondary sort-by column. If a sort-by column contains only numbers, PebbleRows performs a numeric sort; otherwise, PebbleRows performs an alphabetic sort.
To sort table rows, perform the following steps:
Place the source code for the table in the text area.
In the Sort-by column field, enter a positive integer specifying the column that you want to sort by.
Optionally, specify the secondary sort-by column.
If you do not want to specify a secondary sort-by column, clear that field or set it to 0.
Make sure that the Column to delete field is empty or set to 0.
Select either Ascending or Descending under Sort order.
Click the Sort Rows button.
PebbleRows processes the table and returns the result in the text area.
To delete a table column, perform the following steps:
Place the source code for the table in the text area.
In the Column to delete field, enter a positive integer specifying the column that you want to delete.
Click the Delete Column button.
PebbleRows processes the table and returns the result in the text area.