Sort print job by descending timestamps.

This commit sorts print job by timestamps in descending. Also added support for test database.