Fix row-column-swap in TileMap palette
Fix row-column-swap in TileMap palette

Due to the TileSet coordinates using x for columns and y for rows, the
columns are assigned to the rows in the TileMap palette and distort the
order. Thus the default sorting algorithm prioritizing x is replaced
with a custom one prioritizing y.

Fixes #24751

MarianoGnu/godot,sanikoyes/godot,firefly2442/godot,Shockblast/godot,Zylann/godot,BastiaanOlij/godot,DmitriySalnikov/godot,pkowal1982/godot,sanikoyes/godot,akien-mga/godot,Valentactive/godot,akien-mga/godot,BastiaanOlij/godot,godotengine/godot,ZuBsPaCe/godot,BastiaanOlij/godot,Zylann/godot,Shockblast/godot,ZuBsPaCe/godot,pkowal1982/godot,firefly2442/godot,vkbsb/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,ex/godot,guilhermefelipecgs/godot,pkowal1982/godot,Faless/godot,josempans/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,Paulloz/godot,vkbsb/godot,BastiaanOlij/godot,ex/godot,Zylann/godot,guilhermefelipecgs/godot,godotengine/godot,vnen/godot,guilhermefelipecgs/godot,Valentactive/godot,pkowal1982/godot,firefly2442/godot,vnen/godot,josempans/godot,BastiaanOlij/godot,DmitriySalnikov/godot,ex/godot,Faless/godot,DmitriySalnikov/godot,MarianoGnu/godot,godotengine/godot,josempans/godot,firefly2442/godot,firefly2442/godot,vnen/godot,honix/godot,firefly2442/godot,vkbsb/godot,Zylann/godot,vnen/godot,firefly2442/godot,DmitriySalnikov/godot,pkowal1982/godot,akien-mga/godot,Valentactive/godot,Valentactive/godot,guilhermefelipecgs/godot,akien-mga/godot,honix/godot,MarianoGnu/godot,Zylann/godot,godotengine/godot,akien-mga/godot,josempans/godot,honix/godot,Zylann/godot,Paulloz/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,ex/godot,pkowal1982/godot,MarianoGnu/godot,vkbsb/godot,honix/godot,ex/godot,Paulloz/godot,vkbsb/godot,godotengine/godot,pkowal1982/godot,godotengine/godot,vnen/godot,josempans/godot,ex/godot,vkbsb/godot,Shockblast/godot,Shockblast/godot,sanikoyes/godot,honix/godot,sanikoyes/godot,Valentactive/godot,DmitriySalnikov/godot,sanikoyes/godot,josempans/godot,DmitriySalnikov/godot,vnen/godot,ex/godot,vnen/godot,josempans/godot,MarianoGnu/godot,akien-mga/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,Faless/godot,Faless/godot,MarianoGnu/godot,BastiaanOlij/godot,pkowal1982/godot,MarianoGnu/godot,sanikoyes/godot,sanikoyes/godot,honix/godot,vkbsb/godot,akien-mga/godot,vkbsb/godot,guilhermefelipecgs/godot,Faless/godot,BastiaanOlij/godot,firefly2442/godot,Valentactive/godot,Valentactive/godot,josempans/godot,sanikoyes/godot,Paulloz/godot,Faless/godot,Shockblast/godot,Paulloz/godot,godotengine/godot,vnen/godot,Shockblast/godot,ZuBsPaCe/godot,Paulloz/godot,ZuBsPaCe/godot,Faless/godot,godotengine/godot,Zylann/godot,Shockblast/godot,Valentactive/godot,Paulloz/godot,Zylann/godot,Faless/godot,MarianoGnu/godot,Shockblast/godot,akien-mga/godot,ex/godot