Added comments to power sorting