I'm fairly new to XML, but I kind of like it.
I'm wondering how I would go about to retrieve data
sorted in a specific way (for example alphabetical) from a XML file.
What I'm looking for is something like the database SQL like "SELECT * FROM user ORDER BY name".
Do I sort when inserting into the file or when reading?
The language I'm working with is PHP but any general ideas will be apreciated.