Michael Ed wrote:

[sorting news array from multiple sources]

Maybe something like

<?php

$topics = array(84,99);
$limit = 10;

while (list($topic) = each($topics))
{
  $article = mgd_list_topic_articles_all($topic);
  $i = 0;
  while ($article && $article->fetch() && ($i++) <= $limit)
  {
     $blixtart_date[$article->id] = $article->aldate;
     $blixtart_title[$article->id] = $article->title;
  }
}

asort($blixtart_date);

while (list($id,$date)=each($blixtart_date))
{
  echo "$id: $date $blixtart_title[$id]<br>\n";
}

$blixtart_title could in fact be $blixtart_anything[$article->id] =
array(...); I just want the date
in a separate array for easy sorting.

Emile

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to