Is there a convenient way to make a table of multiple object classes, or just one based on a qualifier instead of an object?

Furthermore, is it possible to arrange the table so that when looping through it, the order the objects are selected will be based on a value (example: objects with lower Y run through the loop first)?