HW2-1  add sorting
let the user select according to rating