[FW][FIX] point_of_sale: fix incorrect sorting logic on ticket screen
Before:
- Orders were compared using full date objects, which caused incorrect sorting when the dates were the same.
After:
- Sorting now uses numeric timestamps for accurate date comparison.
- If timestamps are equal, it falls back to sorting by order number.
Task: 4881605 Runbot Error: odoo/error#226754
Forward-Port-Of: odoo/odoo#215123
@djip-odoo @davidmonnom this PR targets master and is the last of the forward-port chain.
To merge the full chain, use
@robodoo r+
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
@robodoo r+
@djip-odoo @davidmonnom staging failed: ci/runbot on b1bef6f240812d37bf29afbf76a89d95145ce714 (view more at https://runbot.odoo.com/runbot/build/83029004)
@djip-odoo @davidmonnom this PR was modified / updated and has become a normal PR. It must be merged directly.
@robodoo r+
