SELECT * FROM lang WHERE online=1 ORDER BY rank