Need to make brick sorting work