fixed bot
added sorting for shareTypes in history