How to sort records by a calculated column.
e.g {score} s a user defined feld not found in db.
OnLoadRecord:
$check_sql = “SELECT SUM(mark_index) from tbl_course WHERE student_id = ‘{student_id}’”;
sc_lookup(rs, $check_sql);
$temp = {rs[0][0]};
{score} = round($temp / 100);
Now how to sort by this fied?