fix order-by subscript array access