The correct method of storing more than two bar magnets is to arrange them with their:
i) Store magnet at room temperature as at temperature > curie temperature demagnetize it.
ii)Magnets must be prevented from mechanical shock as can break due to brittle nature.
iii) In horse-shoe, store end to end. In bar magnet,opposite poles together to prevent demagnetization.