How to get max value of a column from one table with its matching record in second table in PostgreSQL?
In Postgres the most efficient way is to do this using distinct on ():

select distinct on (o.id) o.id, o.name, t.edu, t.sortby
from one o 
  join two t on o.grade = t.grade_id
order by o.id, t.sortby desc