This has worked for me too. Not only does the coconut oil feed your body more slowly and steadily than sugar, it also helps kill off any candida overgrowth. I've been reading "Fats That Heal, Fats That Kill" and the author mentions that when one of the fatty acids in coconut is used by yeast in making their cell walls, they lyse (break and die.)
I still want sugar, but I'm on a much more even keel, and it's not the overwhelming GOTTA HAVE IT feeling. It's really getting down to where cravings are much more manageable.
I've been getting much healthier overall, and that's a good feeling.