User defined preference for displaying a subcategory list above topics in a category

Please share that code!