I am aware that kubernetes has the concept of pod ordering. Reference: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
I want to know how kubernetes orders pods by default and their scheduling algorithm, when the ordering is not explicitly mentioned by users. I see that the ordering is not in the order provided by users and its random.
Kubernetes by default does not have pod priorities. It has different thing (even more important actually) which is called Pod Quality of Service. In general it defines how much time pod is running without external interruptions. There are 3 QoS types: