SELECT * 
FROM BA_CLASS
WHERE use_yn = 'Y'
ORDER BY class_cd ASC, sort_idx ASC