Your code works perfectly ...
After the sort (without SORT_STRING), it reads (as I would expect):
Array
(
[0] => Aberdare Rugby Club
[1] => Beehive Inn
[2] => Black Lion Hotel
[3] => Boot Hotel (The)
[4] => Bute Arms
[5] => Cambrian Inn (The)
[6] => Conway Inn (The)
[7] => Gadlys Arms
[8] => Glandover Arms
[9] => Glosters Arms
[10] => Mackworth Arms (The)
[11] => Marquis Inn
[12] => Morning Star
[13] => Pickled Pepper
[14] => Whitcombe Hotel
[15] => White Lion
[16] => Yr Ieuan ap Iago (Wetherspoons)
)
I've checked for whitespaces, i.e. :
' 'blank
'\t' tab
'\n' new line
'\f' form feed
'\r' carriage return
and I can't find them anywhere ..... all the text is pulled from a single-line db entry (from MySQL).
I can usually work these things out, but I had to post a message, as I'm going mad trying to solve it!
Thanks for your reply, it is much appreciated.
Regards,
ZZ.