You are right Ken, looks like I've been lost in changes...
To activate position preferences, please change 4th line in the block's code to the following:
$res = $db->super_query( "SELECT * FROM " . $cMain["dbPrefix"] . "categories ORDER by position ASC", true );