how to create Layer in MV?

Hey guys I wanted to know how to create multiLayer in MV?

I am kinda reticent to create this though since how MV handles sprite is kinda sh***ty with the lack's of Z 

I was curious to know how you guys would create multi layer....

but what I want to do is allow people to "push" picture and to remove them when they want (in game)  ...but I am unsure how to do this....
1. Add picture as child


2. Sort children by z-index


You could implement some sort of sorted binary tree thing or maybe a heap if you wanted to make it more efficient for insertion/deletion/look-ups, but I don't think it really matters unless you're planning to work with a LOT of display objects frequently.
Okai then how do I push multi picture in the same time?
Use a loop. Make an array that will contain the sprites inside the loop, then add them on where you want them to be added.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-layer-in-mv.53504/