Hello I'm creating a game engine. In order to draw everything correctly I need to sort a vector (vector<game_object*>) by each contents z value
I miserably failed to do it with std's sort() so Id like to know what's the most efficient way I could sort this vector [If its efficient , its likely complex so please post quite a bit of example code :icon_cheesygrin: ]