I agree, SQL is the easiest option but when I put an order by on the query it is ignored. I know it is running that query because if I put rubbish in it fails. The data when returned is going straight into the copmbo button as it is bound to it. I can't find a way to get to any collection to sort it. The persistence bean was built by connecting to the database and importing the data from the database. I then bound it to the combo button. As I say, it works fine but the order is wrong. This is the code that has been generated :
@Entity
@Table(name = "supplier")
@XmlRootElement
@NamedQueries({
@NamedQuery(name = "Supplierdb.findAll", query = "SELECT s FROM Supplierdb"),
@NamedQuery(name = "Supplierdb.findBySupplierID", query = "SELECT s FROM Supplierdb s WHERE s.supplierID = :supplierID"),
@NamedQuery(name = "Supplierdb.findByName", query = "SELECT s FROM Supplierdb s WHERE s.name = :name"),
@NamedQuery(name = "Supplierdb.findByNotes", query = "SELECT s FROM Supplierdb s WHERE s.notes = :notes"),
@NamedQuery(name = "Supplierdb.findByStatus", query = "SELECT s FROM Supplierdb s WHERE s.status = :status")})
I tried putting an order by clause on the end of the 'findall' query but, as I say, it is ignored. I have found some syntax for an

rderby statement but I cannot find anywhere that the compiler will allow this. I've been following this tutorial to get me this far:
http://netbeans.org/kb/docs/java/gui-binding.html
Any help appreciated, it seems a shame to get htis far and be defeated by such a stupid thing!
Thanks,
Neil