How to get an order by its id programmatically?

Interface

https://github.com/magento/magento2/blob/8fd3e8/app/code/Magento/Sales/Api/OrderRepositoryInterface.php#L26-L32

Implementation

https://github.com/magento/magento2/blob/8fd3e8/app/code/Magento/Sales/etc/di.xml#L55-L55

https://github.com/magento/magento2/blob/8fd3e8/app/code/Magento/Sales/Model/OrderRepository.php#L75-L90

Usage

See also: