Cleaned up build for Sorting demo used in reference manual. Added
self-certification to demo applet