X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=1ed1d4ace6aa56d6642c793b77fa31301524d767;hb=42e878b29ae26943d7dc3acfbb7f095a56ae0a2f;hp=e4766f52b0605fee258c6a420f4d6fded100d6a8;hpb=f13c9d8580d02851b150e21ea9beb6fc1dfbd3c8;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index e4766f52b..1ed1d4ace 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2139,8 +2139,8 @@ Returns all notes (see L) for this customer. sub notes { my($self,$orderby_classnum) = (shift,shift); - my $orderby = "_DATE DESC"; - $orderby = "CLASSNUM ASC, $orderby" if $orderby_classnum; + my $orderby = "sticky DESC, _date DESC"; + $orderby = "classnum ASC, $orderby" if $orderby_classnum; qsearch( 'cust_main_note', { 'custnum' => $self->custnum }, '',