Going by the timings of both the trains, the Kannur portion should be in the front between SBC and MAQ and while going back to SBC,the Karwar portion will be in the front from MAQ to SBC and CAN portion will be at the back.
-
P.S.: I have not personally spotted this arrangement.