I know this goes against conventional database techniques but what I want to do is sort a database by time in milliseconds as things are entered into them having the item with the lowest milliseconds first and longest last.
Is there an easy way to do this? I do realize this is going to be very resource hungry but the database acts as a sort of calendar and this would prevent from having 30 alarmManagers running.
opinions/suggestions?
You can do when you fetch the data using
ORDER BYFor example:
SELECT * FROM timetable ORDER BY somethingwithtime;Regardless they are not sorted in your database, the query will output data sorted.