The numbering is incremented from the last number that was used.
For integrated Sales Channels such as Shopify, Woocommerce, etc., the numbering system will adhere to that in the Sales Channel.
For example, in Shopify, Sales Order numbers are set under Settings > General > Standards and Formats. Do note that in terms of numbering sequence, QuickBooks Commerce will not consider sales orders coming from your Sales Channels.