As I can use sorting in EJB-QL quiries ?
Planned for EJB2.1 (see draft spec)However, you can configure it now in jbosscmp-jdbc.xml - it's covered in the documentation