resource: add configurable 'fifo' and 'lifo' ordering to application classes