rating select added. sorting rewritten to support rating select