Actually priority has nothing do in it..
Priority here depends on time given between BKSC-DHN.
If train has more than enough time it would less priority train.
If train has enough time it would be medium priority train.
And...
more... Train having less time and is raj/shtb/sf will be high priority train..