I have written my own template and some part of the content is as the following:
<?php
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// Add Stylesheets
JHtmlBootstrap::loadCss();
// Load optional rtl Bootstrap css and Bootstrap bugfixes
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);
?>
<jdoc:include type="head" />
For a specific file I need to load two javascript files which need jQuery.
$document = JFactory::getDocument();
$document->addScript('js/jquery.uitablefilter.js');
$document->addScript('js/filterTable.js');
Eventhough they are loaded before jQuery. there many questions about this problem and many answers as well but it stills loads javascripts before jQuery.
I do not know what the reason is and how to overcome.