Shoprite has posted a 24.5% rise in annual sales, boosted by food inflation and market share gains.