Daniel,<div><br></div><div>Sorry for overlooking your question, yes you are correct we are not currently using the base class order by and sort order.</div><div>I have created a <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7706">trac</a> ticket for it.<br>

<br><div class="gmail_quote">On 1 July 2013 13:37, Daniel Thompson <span dir="ltr"><<a href="mailto:developingdanny@gmail.com" target="_blank">developingdanny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div>Hi Vikas,<br><br>I thought this was the case.<br><br></div>To confirm in the main class file i've checked in this case 'Leads'<br><br></div><div>modules/Leads/Leads.php<br></div>
<div>

<br>//Added these variables which are used as default order by and sortorder in ListView<br>var $default_order_by = 'lastname';<br>var $default_sort_order = 'ASC';<br><br></div>But it always seems to be changing this to modified time.<br>


<br></div><div>Regards<br><br></div><div>Danny<br></div><div><br></div>Is this a big<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 1 July 2013 06:18, Vikas Jain <span dir="ltr"><<a href="mailto:vikas@vtiger.com" target="_blank">vikas@vtiger.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Daniel,<div><br></div><div>These instance variable are the same that are set in the main class, we are using getForSql API to</div>


<div>prevent any sql injection. <br><br><div class="gmail_quote"><div><div>On 28 June 2013 14:10, Daniel Thompson <span dir="ltr"><<a href="mailto:developingdanny@gmail.com" target="_blank">developingdanny@gmail.com</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,<br><br></div>I have a question about below;<br><div><div><br>
$orderBy = $this->getForSql('orderby');<br>

$sortOrder = $this->getForSql('sortorder');<br><br></div><div>/models/ListView.php<br>
</div><div><br></div><div>These functions don't seem to relate to the module instance variable set in the main class for sortorder and orderby.<br><br></div><div>Are they suppose to or are these now set in a different area?<br>





<br></div><div>Regards<br><br></div><div>Danny<br></div></div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div>
<br></div>-- <br>Regards<br>Vikas<br>Vtiger Team
</font></span></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards<br>Vikas<br>Vtiger Team
</div>