Hi Iain
Do you want to loop through your DB table alphabetically? The query syntax contains the ORDER BY command, e.g.
SELECT * FROM mytable ORDER BY myfield ASC;
// You can also use DESC to go from Z to A
This orders the results alphabetically, if it's a TEXT/CHAR column, and numerically if it's an INT/FLOAT column.
Is that what you were looking for?
Norm
PS: Born Glasgow, live Berlin