Hi Pranav,
To what order are you referring too?
Database records are not stored in a particular order, and the primary key is a technical key without any specific meaning. Performant sorting order should be implemented by index definitions on your entity.
Regards,
Daniel