First, don’t edit parameter this way (e.g directly in the snippet code), you’ll end up having to change them again upon snippet upgrades
In your case simply change the snippet call :
[tt]&sortBy=`createdon`[/tt]
to
[tt]&sortBy=`pub_date`[/tt]
It’s normal that it only changed the way the list is sorted.
To change the date used in Ditto templates, you have to use the parameter [tt]&dateSource=`pub_date`[/tt], because it defaults to createdon. This will control which date is used for the [+date+] placeholder in your Ditto template (you can create a custom Ditto template by using the &tpl parameter to specify a chunk to use to that purpose. Check
ditto’s documentation to see which placeholders are available.)
On the detail page for the article, you’ll need to edit your template and change [*createdon*] for [*pub_date*] too.
Remember that you can format the date easily :
In your snippet call add :
[tt]&dateFormat=`%d/%m/%Y` &extenders=`dateFilter`[/tt]
In your detail page use the following syntax :
[tt][*createdon:date=`%d.%m.%Y`*][/tt]
or in your case
[tt][*pub_date:date=`%d.%m.%Y`*][/tt]