This reaction is called Lobry de Bruyn- van Ekenstein rearrangement and is believed to occur via 1, 2 enolization.
When an aqueous solution of D - glucose or D - mannose is treated with a base it undergoes some conversions. This conversion (isomerisation) involves