fix centers sorting