updates documentation

This commit is contained in:
Martin Monperrus
2014-12-04 22:41:34 +01:00
parent c1dc82b1ae
commit 83712b111b
+17
View File
@@ -306,6 +306,23 @@ Add in ''bibtexbrowser.local.php'':
?>
</pre>
====How to order a list of Bibtex entries?====
<pre>
&lt;?
?>
</pre>
$_GET['library']=1;
require_once('bibtexbrowser.php');
$db = new BibDataBase();
$db->load('biblio.bib');
$query = array('year'=>'2014');
$entries=$db->multisearch($query);
uasort($entries, 'compare_bib_entries'); // comparison
foreach ($entries as $bibentry) {
echo $bibentry->getYear().'<br/>';
}
=====Related tools=====