Priority of carbons attached to chiral group, one with double bonded oxygen, one with two oxygens
Given the same atom, those bond via triple bonds have higher precedence over double and double bonds have higher precedence over single. This is exemplified here and, a bit more formal covering all CIP-rules, here.