add spaces cache and sort space by name