Why Order Feels Missing And Why That Is Fine
Beginners often feel unsettled that results come back in no reliable arrangement, but the unease points at something useful.
A set has no natural order. That is not a limitation, it is the definition. When you describe the records you want, you have described membership and nothing else, so the collection that comes back is entitled to arrive in any arrangement at all, and the arrangement may differ from one day to the next even with identical data. Newcomers find this genuinely disturbing. They ran the same request twice and the list looked different, and it feels like the ground is moving. Nothing is wrong. You simply did not ask for an arrangement, so you did not get a dependable one.
If you want a particular arrangement you must ask for one explicitly, and then you get exactly what you asked for. The deeper lesson, though, is about what you were relying on without realising. If your reasoning depended on the first record being the earliest, or on records appearing grouped together by customer, you had built a conclusion on an accident. It may have held for months. It will fail eventually, quietly, on a day when the underlying data has grown or shifted, and the failure will look like a data problem rather than a thinking problem.
There is a broader habit hidden here, and it is worth taking with you. Anything you did not explicitly ask for is not guaranteed, no matter how consistently you have observed it. Consistency is not a promise. So make your requirements explicit wherever they matter: the arrangement, the uniqueness, the handling of records with nothing to match against. Being explicit is slightly more work and it looks pedantic to people watching over your shoulder. It is also the difference between a result you can defend and a result you merely happen to have.