title: Is it possible to save data in an order in mysql or mongodb against a particular field?
body: <p>I have a usecase wherein I need to maintain ordered data against a particular field either in mongodb or mysql. Is is possible to do that? I can always retrieve data in order by using an orderby clause but I need to save the rows in ordered format in database, something like inserting into a sorted tree. Performance of database is not a concern. </p>