title: Objects depth sorting in isometric game
body: <p>I have isometric tile game engine (diamond map style) and I need to sort objects what I draw. My objects are 1x1, 2x1, 4x2. How can I do it based on this code?</p>
  
  <pre><code>for (int osaY = 0; osaY &lt; mapSize; osaY++)
          {
              for (int osaX = 0; osaX &lt; mapSize; osaX++)
              {
                  int x = osaX * 32;
                  int y = osaY * 32;
  
                  PlaceObject(thisObject, CartToIso(new Vector2(x, y)), new Vector2(osaX, osaY));
              }
          }
  </code></pre>