Hi Sanket,
RSEG table will have Reference doc number(LFBNR which is the GR Number), but not the Reference doc date. Reference Doc date(GR date) can be obtained from MKPF/MSEG tables. You can fetch the fields accordingly into an internal table and then sort as required.
Hope this helps!
Regards,
Varun Vasudevan