View featured products on top from product listing

<?php
require '/var/www/app/Mage.php';
Mage::app(0);

# remove script name from array
$items = array_slice($argv, 1); 

# set featured product
Mage::getConfig()->saveConfig('catalog/featured/product', implode(",", $items));
?>

php -f set_featured_product.php sku1 sku2 sku3

clear magento cache

<?php
require '/var/www/app/Mage.php';
Mage::app(0);

function updateProduct($product) {
    try {
        if(!empty($product)) {
            $write = Mage::getSingleton('core/resource')->getConnection('core_write');
            $write->query("
                UPDATE magento.catalog_product_entity
                SET updated_at = now() + INTERVAL 1 year
                WHERE catalog_product_entity.sku = '". $product . "';
            "); 
        }
    } catch (Exception $e) {
        Mage::printException($e);
    }
}

$products = explode(',', Mage::getStoreConfig('catalog/featured/product'));
$products = array_reverse($products);
foreach($products as $product) {
    updateProduct($product);
    sleep(1);
}
?>

php -f update_featured_product.php