added building sort