sorts deck in ascending order.
deck is sorted in ascending order before storing into database.
remove unnecessary println statements.